package com.gosophia.conferenceManagement.common.entity;

/**
 * 文档基本信息
 * @author nana
 */
public class Document {
    /**
	 * 文档Id
	 */
	private Long documentId;
	
	/**
	 * 文档描述
	 */
	private String documentNote;
	
	/**
	 * 文档名称
	 */
	private String documentName;
	
	/**
	 * 文档路径
	 */
	private String documentPath;
	
	@Override
    public String toString() {
        return "Document [documentCategory=" + documentCategory
                + ", documentId=" + documentId + ", documentName="
                + documentName + ", documentNote=" + documentNote
                + ", documentPath=" + documentPath + ", documentVersion="
                + documentVersion + "]";
    }

    /**
	 * 文档版本
	 */
	private String documentVersion;
	
	/**
	 * 文档类别
	 * 		在线："online"
	 * 		附件："attachment"
	 */
	private String documentCategory;

	public Long getDocumentId() {
		return documentId;
	}

	public void setDocumentId(Long documentId) {
		this.documentId = documentId;
	}

	public String getDocumentNote() {
		return documentNote;
	}

	public void setDocumentNote(String documentNote) {
		this.documentNote = documentNote;
	}

	public String getDocumentName() {
		return documentName;
	}

	public void setDocumentName(String documentName) {
		this.documentName = documentName;
	}

	public String getDocumentPath() {
		return documentPath;
	}

	public void setDocumentPath(String documentPath) {
		this.documentPath = documentPath;
	}

	public String getDocumentVersion() {
		return documentVersion;
	}

	public void setDocumentVersion(String documentVersion) {
		this.documentVersion = documentVersion;
	}

	public String getDocumentCategory() {
		return documentCategory;
	}

	public void setDocumentCategory(String documentCategory) {
		this.documentCategory = documentCategory;
	}

    /* (non-Javadoc)
     * @see java.lang.Object#hashCode()
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result
                + ((documentId == null) ? 0 : documentId.hashCode());
        return result;
    }

    /* (non-Javadoc)
     * @see java.lang.Object#equals(java.lang.Object)
     */
    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        Document other = (Document) obj;
        if (documentId == null) {
            if (other.documentId != null)
                return false;
        } else if (!documentId.equals(other.documentId))
            return false;
        return true;
    }

     
  
}
